docs: correct api/envoy/service/auth/v2 docs#6211
docs: correct api/envoy/service/auth/v2 docs#6211mattklein123 merged 3 commits intoenvoyproxy:masterfrom LukeShu:lukeshu/ext-authz-grpc-docs
Conversation
Update some documentation comments in api/envoy/service/auth/v2/*.proto to more accurately describe the *current* behavior (without making any judgment on whether that behavior is "correct" or desirable). Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
|
v2: Add DCO |
| message CheckResponse { | ||
| // Status `OK` allows the request. Any other status indicates the request should be denied. | ||
| // Status `OK` allows the request. Status `UNKNOWN` causes Envoy to abort. Any other status | ||
| // indicates the request should be denied. |
| // appears in the first line of the HTTP request. No decoding is performed. | ||
| // This field is always empty, and exists for compatibility reasons. The HTTP URL query is | ||
| // included in `path` field. | ||
| string query = 7; |
There was a problem hiding this comment.
can we enforce empty here? Is it worth it?
There was a problem hiding this comment.
What do you mean "enforce empty"? Note that Envoy is what populates this, not the AuthService talking to Envoy. I don't believe that code outside of Envoy ever needs to create this.
| // The network protocol used with the request, such as | ||
| // "http/1.1", "spdy/3", "h2", "h2c" | ||
| // The network protocol used with the request, as enumerated by | ||
| // `source/common/http/headers.h:ProtocolStrings`, such as "HTTP/1.0", "HTTP/1.1", or |
There was a problem hiding this comment.
What should that URL look like? AFAICT, there's not a documentation page on ProtocolStrings. Should it link to the source on GitHub?
| // Intended for gRPC and Network Authorization servers `only`. | ||
| message CheckResponse { | ||
| // Status `OK` allows the request. Any other status indicates the request should be denied. | ||
| // Status `OK` allows the request. Status `UNKNOWN` causes Envoy to abort. Any other status |
There was a problem hiding this comment.
"abort" means "exit with a stack trace", which I guess is probably a bug (#6210).
| string query = 7; | ||
|
|
||
| // The HTTP URL fragment, excluding leading `#`. No URL decoding is performed. | ||
| // This field is always empty, and exists for compatibility reasons. The URL fragment is |
|
@LukeShu just replied to your comments. I will approve after update. |
Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
|
@junr03 I just added a commit. I think I got the link syntax correct, but please verify that. |
mattklein123
left a comment
There was a problem hiding this comment.
Thanks, one small request.
/wait
… link Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
…6821) Description: PR #6211 updated the documentation of CheckResponse.status to reflect Envoy's actual behavior at the time. Later, PR #6505 changed that behavior to be in-line with the pre-6211 docs. So, revert that part of PR #6211. Risk Level: Low Testing: None Docs Changes: Inline in API protos Release Notes: none Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
Description: Update some documentation comments in
api/envoy/service/auth/v2/*.prototo more accurately describe the current behavior (without making any judgment on whether that behavior is "correct" or desirable).Risk Level: Low
Testing: None
Docs Changes: Inline in API protos
Release Notes: None?
Attn: @saumoh, who I believe to be the original author.